import request from "@/utils/request.js";
import functions from "@/utils/functions.js";


/**
 * 测试登录
 * @param {Object} data
 */
export function testLogin(data) {

	return request({
		url: '/zhonggu/user/login/testLogin',
		method: "post",
		data
	});
}

/**
 * 我关注的商家
 * @param {Object} data
 */
export function queryCareShopList(data) {

	return request({
		url: '/zhonggu/user/users/queryCareShopList',
		method: "post",
		data
	});
}

/**
 * 我关注的品牌
 * @param {Object} data
 */
export function queryCareBrandList(data) {

	return request({
		url: '/zhonggu/user/collect/collectionBrandList',
		method: "post",
		data
	});
}

/**
 * 获取关注用户列表
 * @param {Object} data
 */
export function collectionUserList(data) {

	return request({
		url: '/zhonggu/user/index/collectionUserList',
		method: "post",
		data
	});
}

/**
 * 关注作者
 * @param {Object} data
 */
export function collectionUser(data) {

	return request({
		url: '/zhonggu/user/collect/collectionUser',
		method: "post",
		data
	});
}

/**
 * 我的心愿单
 * @param {Object} data
 */
export function queryCollect(data) {

	return request({
		url: '/zhonggu/user/goods/queryCollect',
		method: "post",
		data
	});
}

/**
 * 清除心愿单已售
 * @param {Object} data
 */
export function removeSoldOut(data) {

	return request({
		url: '/zhonggu/user/goods/removeSoldOut',
		method: "post",
		data
	});
}

/**
 * 消息中心-新增关注
 * @param {Object} data
 */
export function myNewInterestPages(data) {

	return request({
		url: '/zhonggu/user/comments/getMyNewInterestPages',
		method: "post",
		data
	});
}

/**
 * 消息中心-获取我的评论和@我的帖子
 * @param {Object} data
 */
export function myCommentsAndAtPages(data) {

	return request({
		url: '/zhonggu/user/comments/getMyCommentsAndAtPages',
		method: "post",
		data
	});
}


/**
 * 消息中心-获取帖子点赞和收藏列表
 * @param {Object} data
 */
export function likeCollectionList(data) {

	return request({
		url: '/zhonggu/user/article/likeCollectionList',
		method: "post",
		data
	});
}

/**
 * 消息中心-通知公告分页
 * @param {Object} data
 */
export function noticePage(data) {

	return request({
		url: '/zhonggu/user/notice/getNoticePage',
		method: "post",
		data
	});
}

/**
 * 消息中心-获取消息中心 赞和收藏/新增关注/评论和@统计数量
 * @param {Object} data
 */
export function msgTotal(data) {

	return request({
		url: '/zhonggu/user/comments/getMsgTotal',
		method: "post",
		data
	});
}